package ru.myrtle.umf.query.condition;

public abstract class UObjectValueAdapter implements UValueAdapter<Object> {

    public static final UObjectValueAdapter DEFAULT = new UObjectValueAdapter() {

        @Override
        protected Object getObject(Object value) {
            return value;
        }
    };

    protected abstract Object getObject(Object value);

    @Override
    public Object adapt(Object value) {
        return getObject(value);
    }
}
